package com.wires.lu.practice;


public enum CountryEnum {

    ONE(0,"齐"),
    TWO(1,"楚"),
    THREE(2,"燕"),
    FOUR(3,"赵"),
    FIVE(4,"魏"),
    SEVEN(5,"韩");

    private Integer retCode;
    private String retMessage;

    public Integer getRetCode() {
        return retCode;
    }

    public String getRetMessage() {
        return retMessage;
    }
     CountryEnum(Integer retCode,String retMessage){
        this.retCode=retCode;
        this.retMessage=retMessage;
    }
    public static CountryEnum for_each_CountryEnum(int index){
        CountryEnum[] values = CountryEnum.values();
        for(CountryEnum element:values){
            if(index==element.retCode){
                return element;
            }
        }
        return null;
    }

}
